<?php

/*
	Class: CommerceMagentoCountries

	About: Author
		Rich Joslin

	About: License
		<http://communit.as/docs/license>
*/
class CommerceMagentoCountries extends Commerce_Db_Model_Magento {

	/* Group: Instance Methods */

	/*
		Function: getCountries
	*/
	function getCountries() {
		$cache_name = __function__;
		$output = $this->cache->load($cache_name);
		if ($output === false || !isset($output)) {
			$this->initSoap();
			$output = $this->client->call(
				$this->_api_session_id,
				'directory_country.list'
			);
			$this->cache->save($output, $cache_name);
		}
		return $output;
	}

}
